<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta http-equiv="Content-Script-Type" content="text/javascript">
		<script type="text/javascript" src="jquery.js"></script>
		<script type="text/javascript" src="jquery.tpUploader.js"></script>
		<script type="text/javascript">
<!--

var uploader;

function startUpload() {
	uploader.upload();
}

function onUploaded(files) {
	for (var i = 0; i < files.length; i++) {
		var file = files[i];
		document.getElementById("message").innerHTML = file.id + " / " + file.name;
	}
}

$(function(){
	uploader = $("#file").tpUploader({
		fileCount: 3
	});
});

//-->
		</script>
	</head>
	<body>
		<div id="file"></div>
		<input type="button" value="アップロード" onclick="startUpload();">
		<div id="message"></div>
	</body>
</html>
